Name:		valgrind
Version:	3.19.0
Release:	1%{?dist}
Summary:	Tool to help find memory-management problems in programs

License:	GPLv2
URL:		https://www.nongnu.org/lzip/lzip.html
Source0:	https://sourceware.org/pub/valgrind/valgrind-%{version}.tar.bz2

BuildRequires:	gcc-c++

%description
Valgrind is an instrumentation framework for building dynamic analysis
tools. There are Valgrind tools that can automatically detect many memory
management and threading bugs, and profile your programs in detail.
You can also use Valgrind to build new tools. 

%prep
%setup -q

%build
# do not use the configure macro because valgrind doesn't like RPM_OPT_FLAGS
./configure --prefix=%{_prefix} --libdir=%{_libdir} --enable-only64bit
make %{?_smp_mflags}

%install
%make_install

%files
%license COPYING
/usr/bin/*
%{_libdir}/valgrind
%{_libdir}/pkgconfig/valgrind.pc
/usr/libexec/valgrind
/usr/include/valgrind
/usr/share/doc/valgrind
/usr/share/man/man1/*

%changelog

